/** @format */

const { TBAPI_REQUEST } = require('./request')

let TBAPIS = {}

const APIS = [
  `getItemListByItemIds`,
  `getPrizeByEname`,
  `getShopVipUrl`,
  `queryVipinfo`,
  `benefitSend`,
  `queryCredits`,
  `changeCredits`,
  `getShopInfo`,
  `getBuyerOrderList`
]

APIS.forEach(v => {
  TBAPIS[v] = async query => {
    let result = await TBAPI_REQUEST(process.db, v, query)
    console.log(`TBAPIS.${v}----参数`, process.db, v, query)
    console.log(`result`, result)
    return result.tbvalue
  }
})
module.exports = TBAPIS
